function ConvertData(dataName, dataStr, typeStr : Str255; min, max : real) : boolean;

Converts from one data type to another.

dataName = Data window name to convert.
dataStr = Which maximum and minimum to use for convertion:  TYPE, DATA, CUSTOM.
typeStr = Type of conversion: BYTE, INTEGER, LONGINT, and REAL.
min, max = The max and min to use when converting custom.